﻿using UnityEngine;
using UnityEngine.UI;


namespace BackpackSystem
{
    /// <summary>
    /// 物品位
    /// </summary>
    public class ItemSlot : MonoBehaviour
    {
        /// <summary>
        /// 状态|是否已放置
        /// </summary>
        public bool IsPlaced { get; private set; } = false;

        /// <summary>
        /// 物件|绑定关联项
        /// </summary>
        public Item ItemUI { get; private set; }




        public void DoUpdateDetail(Item item)
        {
            this.ItemUI = item;
            this.IsPlaced = this.ItemUI != null;
        }
    }
}
